@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="skateInfoForm">

            <input type="hidden" id="id" value="${item.id}">

            <div class="row">
                <div class="col-sm-6 b-r">
                            <#input id="name" name="名称" value="${item.name}" underline="true"/>
                            <#select id="type" name="尺码" underline="true">
                           		<option value="1" ${item.type==1?'selected':''}>28~31码</option>
								<option value="2" ${item.type==2?'selected':''}>31~35码</option>
								<option value="3" ${item.type==3?'selected':''}>36~39码</option>
                            </#select>
                            
                            <#select id="level" name="类型" underline="true">
                           		<option value="1" ${item.level==1?'selected':''}>儿童鞋</option>
								<option value="2" ${item.level==2?'selected':''}>成人鞋</option>
                            </#select>
                </div>

                <div class="col-sm-6">
                            <#input id="color" name="颜色" value="${item.color}" underline="true"/>
                            <#input id="number" name="数量" value="${item.number}" underline="true"/>
                            <#input id="price" name="单价" value="${item.price}" underline="true"/>
                </div>
                
                 <div class="col-sm-12">
                 	<span id="uploadImage"></span>
                 	<div class="custom-table" style="width: 100%;height: 100%; font-family: verdana,arial,sans-serif;
            			font-size:11px;color:#666666;  border-color: #e6e6e6;border-collapse: collapse;">
            			<table style="width: 100%;height: 100%;" >
								<thead>
									<tr>
										<th style="text-align:center; border-width: 1px;padding: 8px; border-style: solid; border-color: #e6e6e6; background-color: #f2f2f2;">文件名</th>
										<th style="text-align:center; border-width: 1px;padding: 8px; border-style: solid; border-color: #e6e6e6; background-color: #f2f2f2;">类型</th>
										<!-- <th style="text-align:center; border-width: 1px;padding: 8px; border-style: solid; border-color: #666666; background-color: #dedede;">进度</th> -->
										<th style="text-align:center; border-width: 1px;padding: 8px; border-style: solid; border-color: #e6e6e6; background-color: #f2f2f2;">状态</th>
										<th style="text-align:center; border-width: 1px;padding: 8px; border-style: solid; border-color: #e6e6e6; background-color: #f2f2f2;">操作</th>
									</tr>
								</thead>
								<tbody id="demoList">
								 @if(fileMap!=null){
									@for(entry in fileMap){
				       			 		 <tr>
											<td tabindex="0" class="file_date" data="${entry.value}" style="text-align:center; border-width: 1px;padding: 8px; border-style: solid; border-color: #e6e6e6;">${entry.key}</td>
											<td class="file_type" data="" style="text-align:center; border-width: 1px;padding: 8px; border-style: solid; border-color: #e6e6e6;">
											${strutil.subStringTo(entry.value,strutil.index(entry.value,".")+1,strutil.length(entry.value))}
											</td>
											<td style="text-align:center; border-width: 1px;padding: 8px; border-style: solid; border-color: #e6e6e6;">已提交</td>
											<td style="text-align:center; border-width: 1px;padding: 8px; border-style: solid; border-color: #e6e6e6;">
												<a class='file_download' data="${entry.value}"  style="width:40px;height:20px;display:inline-block;line-height:20px;color:#ffffff;text-align:center;background:#1e9fff">下载</a>
												<a class='file_view' data="${entry.value}"  style="width:40px;height:20px;display:inline-block;line-height:20px;color:#ffffff;text-align:center;background:#009688">预览</a>	
												<a class='file_delete' style="width:40px;height:20px;display:inline-block;line-height:20px;color:#ffffff;text-align:center;background:#ff5722">删除</a>
											</td>

											<input type="hidden" id="fileName" value="${entry.key}" />
											<input type="hidden" id="fileUrl" value="${entry.value}" />
										</tr>
			       			 		 @}
			       			 	 @}
		       			 			<tr id="no_file" style=" display:none;text-align:center; border-width: 1px;padding: 8px; border-style: solid; border-color: #e6e6e6;">
										<td colspan="5" style="text-align: center;padding: 8px;">暂无上传附件</td>
									</tr>
							</tbody>
						</table>
					</div>
                 </div>
                
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="SkateInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="SkateInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/skate/skate/skate_info.js"></script>
@}
